package com.sundi.ecmarket.service.impl;

import com.sundi.ecmarket.dto.KeywordDto;
import com.sundi.ecmarket.entity.EcKeyword;
import com.sundi.ecmarket.mapper.EcKeywordMapper;
import com.sundi.ecmarket.service.IEcKeywordService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 关键字表 服务实现类
 * </p>
 *
 * @author Mht
 * @since 2020-02-23
 */
@Service
public class EcKeywordServiceImpl extends ServiceImpl<EcKeywordMapper, EcKeyword> implements IEcKeywordService {

    @Override
    public List<EcKeyword> selectKeywordList(KeywordDto keywordDto) {
        return this.baseMapper.selectKeywordList(keywordDto);
    }

    @Override
    public boolean deleteByKey(Integer id) {
        return this.baseMapper.deleteByKey(id);
    }
}
